﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 设计模式.拦截过滤器模式
{
   public class InterceptingFilterDemo
    {
        public static void Test()
        {
            FilterManager filterManager = new FilterManager(new Target());
            filterManager.SetFilter(new AuthenticationFilter());
            filterManager.SetFilter(new DebugFilter());

            Client client = new Client();
            client.SetFilterManager(filterManager);
            client.SendRequest("Home");
        }
    }
}
